package com.biostime.dingdingbox.modules.db.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.dingdingbox.common.mybatis.MyBatisDao;
import com.biostime.dingdingbox.common.persistence.CrudDao;
import com.biostime.dingdingbox.modules.db.entity.MemberBox;

/**
 * 激活记录表Dao
 * @author chenweicheng
 * @version 2016-06-28
 */
@MyBatisDao
public interface MemberBoxDao extends CrudDao<MemberBox> {
	public List<MemberBox> apiGetMBByMemberId(@Param("userId")String userId , @Param("boxId") String boxId);
	
	public MemberBox apiGetByCodeAndMem(@Param("userId")String userId , @Param("code") String code);
	
	public MemberBox apiGetByForeign(@Param("memberId")String memberId , @Param("code") String code);
}